package org.mysfit.ctp4j.api.controller.v1;

import org.mysfit.ctp4j.api.vo.SkDataVO;
import org.mysfit.ctp4j.core.service.SkDataService;
import org.mysfit.ctp4j.infra.pojo.ApiResponse;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * sk 前端控制器
 * </p>
 *
 * @author long.gf
 * @since 2022-12-05 12:00:04
 */
@RestController
@RequestMapping("/v1/sk_data")
public class SkDataController {
	
	@Autowired
	private SkDataService service;
	
	@GetMapping("/list")
	public ApiResponse<List<SkDataVO>> list() {
		List<SkDataVO> result = service.listAll();
		return ApiResponse.ok(result);
	}
}